module.exports = {
    /**
     * 更新订单的配置
     * @url update/OrderConfig 前端调用的url参数地址
     */
    main: async (event) => {
          let { data = {}, userInfo, util, originalParam } = event;
          let { uniID, pubFun, vk , db, _ } = util;
          let res = { code : 0, msg : 'ok' };
          let dbName = 'vk-house'
          // 业务逻辑开始----------------------------------------------------------- 
          if(!data._id) {
              return {
                  code: 412,
                  msg: 'id不能为空'
              }
          }
					
					let clueInfo = await vk.baseDao.findById({
					    dbName,
					    id: data._id
					}, event.util);
					if (!clueInfo) {
						return {
								code: 412,
								msg: '查无此房源'
						}
					}
          res.data= clueInfo
          return res
    }
  
  }